<?php
namespace app\api\model\v1;

/*
 * content : 用户权限生成类
 * Author  : Songyicong
 * time    : 2018-04-19 10:41:29
 * email   : m13726262373@163.com
 */

use app\api\model\BaseModel;
use think\Cache;

class UrlAuth extends BaseModel{

    protected $table = "km_url_auth";

    /** 获取 url 权限地址 */
    public static function isUrlAuth($url = ""){
        if(empty($url)){
            return null;
        }
        $auth_name = self::where('url',$url)->find();
        return empty($auth_name)?$auth_name:$auth_name->toArray();
    }

}
